"use strict";
cc._RF.push(module, '6ca97wXuWNOYpbtk+oG8vJk', 'alert');
// javascirpt/alert.js

"use strict";

// Learn cc.Class:
//  - https://docs.cocos.com/creator/manual/en/scripting/class.html
// Learn Attribute:
//  - https://docs.cocos.com/creator/manual/en/scripting/reference/attributes.html
// Learn life-cycle callbacks:
//  - https://docs.cocos.com/creator/manual/en/scripting/life-cycle-callbacks.html
cc.Class({
  "extends": cc.Component,
  properties: {
    tipLabel: cc.Label
  },
  init: function init(okCallback) {
    this.okCallback = okCallback;
  },
  onLoad: function onLoad() {},
  start: function start() {},
  closeAction: function closeAction() {
    this.node.active = false;
  },
  showAction: function showAction() {
    console.log("实打实大");
    this.node.active = true;
  },
  setTip: function setTip(message) {
    this.tipLabel.string = message;
  }
});

cc._RF.pop();